package com.qfedu.hotelssm.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author dzl
 * @date 2022/8/28 21:23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CtOrders {
    @ExcelIgnore
    private Integer id;
    //用户id
    private Integer userid;
    //用户姓名
    private String username;
    //用户电话
    private String userphone;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")//返回
    //订单日期
    private Date ctime;
    //菜的价格
    @ExcelProperty(value = "价格")
    private Double price;
    //菜名
    @ExcelProperty(value = "菜名")
    private String name;
    //菜id
    @ExcelProperty(value = "菜品编号")
    private Integer vegetableid;
    //类别
    @ExcelProperty(value = "类别")
    private String kind;
}
